package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-20
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> selectUserTelephone(String telephone);

    User selectUserTelephoneAndPassword(@Param("telephone") String telephone, @Param("password")  String password);

    int insertUser(User user);

    User selectUserByNameAndPass(User user);

    List<User> selectBykeyWord(String keyWord);

    List<User> selectAll();
}
